<html>
    <head>
    <!--
     * Author:      Gianluca Guarini
     * Contact:     gianluca.guarini@gmail.com
     * Website:     http://www.gianlucaguarini.com/
     * Twitter:     @gianlucaguarini
    -->
        <title>Push notification server</title>
    </head>
    <body>
        <div id="container">Try to change your xml data to update this content</div>
		<div id="time"></div>
    <script src="http://myrun.com:8000/socket.io/socket.io.js"></script>
    <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    <script>
    // creating a new websocket
      var socket = io.connect('http://myrun.com:8000');
      // on every message recived we print the new datas inside the #container div
      socket.on('notification', function (data) {
        $('#container').html(data.sample);
        $('#time').html('Last Update:' + data.time);
      });
    </script>
    </body>
</html>